package com.example.androidmainshixun.view;

import android.content.Intent;
import android.view.View;
import android.widget.RelativeLayout;

import com.example.androidmainshixun.R;
import com.example.androidmainshixun.base.BaseFragment;

public class MessageFragment extends BaseFragment implements View.OnClickListener {
    private RelativeLayout message_detail;

    @Override
    public void onClick(View v) {
        if(v.getId()==R.id.message_detail){
            Intent intent =new Intent(getContext(),ChatActivity.class);
            startActivity(intent);
        }
    }

    @Override
    protected int getLayoutId() {
        return R.layout.message;
    }

    @Override
    protected void initView() {
        message_detail=mView.findViewById(R.id.message_detail);

        message_detail.setOnClickListener(this);
    }

    @Override
    protected void initListener() {

    }
}
